package com.xdf.data_transmitter.service;

import com.xdf.data_transmitter.dao.cloud.HeartBeatMapper;
import com.xdf.data_transmitter.model.HeartBeat;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class HeartBeatServiceImpl implements HeartBeatService{
    @Autowired
    private HeartBeatMapper dao;

    @Override
    public int deleteByPrimaryKey(Integer iid) {
        return dao.deleteByPrimaryKey(iid);
    }

    @Override
    public int insert(HeartBeat record) {
        return dao.insert(record);
    }

    @Override
    public int insertSelective(HeartBeat record) {
        return dao.insertSelective(record);
    }

    @Override
    public HeartBeat selectByPrimaryKey(Integer iid) {
        return dao.selectByPrimaryKey(iid);
    }

    @Override
    public int updateByPrimaryKeySelective(HeartBeat record) {
        return dao.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(HeartBeat record) {
        return dao.updateByPrimaryKey(record);
    }
}
